//
//  TicketView.h
//  pa
//
//  Created by HaiJiao Chen on 12-7-28.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ListController.h"
#import "KXTimer.h"

@class TicketProduct;
@class TicketProductDataSource;
@class MapView;
@class BatchWeight;
@class BatchWeightDataSource;
@interface TicketView : UIView
{
    TicketProduct* product;
    TicketProductDataSource* productDatasource;
    BatchWeight* batchWeight;
    BatchWeightDataSource* batchWeightDatasource;
    KXTimer* timer;
}

@property (nonatomic, assign) IBOutlet UIView* ticketView;
@property (nonatomic, assign) IBOutlet UIImageView* ticketBGView;
@property (nonatomic, assign) IBOutlet UIImageView* logo;
@property (nonatomic, assign) IBOutlet UILabel* add_water_by;
@property (nonatomic, assign) IBOutlet UILabel* add_water_gal;
@property (nonatomic, assign) IBOutlet UILabel* time_left_plant;
@property (nonatomic, assign) IBOutlet UILabel* time_arrived_job;
@property (nonatomic, assign) IBOutlet UILabel* time_start_pour;
@property (nonatomic, assign) IBOutlet UILabel* time_finished_pour;
@property (nonatomic, assign) IBOutlet UILabel* time_left_job;
@property (nonatomic, assign) IBOutlet UILabel* time_arrived_plant;
@property (nonatomic, assign) IBOutlet UILabel* time_elapsed;
@property (nonatomic, assign) IBOutlet UILabel* date;
@property (nonatomic, assign) IBOutlet UILabel* trunk_no;
@property (nonatomic, assign) IBOutlet UILabel* driver;
@property (nonatomic, assign) IBOutlet UILabel* slump;
@property (nonatomic, assign) IBOutlet UILabel* plant_code;
@property (nonatomic, assign) IBOutlet UILabel* ticker_number;
@property (nonatomic, assign) IBOutlet UILabel* job_no;
@property (nonatomic, assign) IBOutlet UILabel* PO_no;
@property (nonatomic, assign) IBOutlet UILabel* account_no;
@property (nonatomic, assign) IBOutlet UILabel* project_no;
@property (nonatomic, assign) IBOutlet UILabel* address;
@property (nonatomic, assign) IBOutlet UILabel* sold_to;
@property (nonatomic, assign) IBOutlet UITableView* table;
@property (nonatomic, assign) IBOutlet UILabel* remarks;
@property (nonatomic, assign) IBOutlet UILabel* total_ordered;
@property (nonatomic, assign) IBOutlet UILabel* yards_today;
@property (nonatomic, assign) IBOutlet UILabel* allowable_time;
@property (nonatomic, assign) IBOutlet UILabel* sub_total;
@property (nonatomic, assign) IBOutlet UILabel* red_by;
@property (nonatomic, assign) IBOutlet UILabel* collect_grand_total;
@property (nonatomic, assign) IBOutlet UILabel* tax;
@property (nonatomic, assign) IBOutlet UILabel* total;
@property (nonatomic, assign) IBOutlet UIButton* batch_weight;
@property (nonatomic, assign) IBOutlet UILabel* slip_no;
@property (nonatomic, assign) IBOutlet UIImageView* accpet;
@property (nonatomic, assign) IBOutlet UILabel* note;
@property (nonatomic, assign) IBOutlet UIImageView* sign;

@property (nonatomic, assign) IBOutlet MapView* map;
@property (nonatomic, assign) IBOutlet UIScrollView* scroll;

- (IBAction)modify:(id)sender;
- (IBAction)accept:(id)sender;
- (IBAction)showBatchWeight:(id)sender;
- (IBAction)showRemark:(id)sender;
- (IBAction)showNote:(id)sender;

@property (nonatomic, assign) long long ticketID;

- (void)setupBG;
@end
